﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExcelSystem.Model
{
    public class BOM : BindableBase
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]

        /// <summary>
        /// 自增长
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 订单物料编码
        /// </summary>
        public string MaterialNo { get; set; }

        /// <summary>
        /// 子件号
        /// </summary>
        public string ChildMaterialNo { get; set; }
        /// <summary>
        /// 槽钢
        /// </summary>
        public string ChannelSteel { get; set; }

        /// <summary>
        /// 槽钢ID
        /// </summary>
        public int ChannelSteelID { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public decimal? Weight { get; set; }
        /// <summary>
        /// 筋板件号
        /// </summary>
        public string RibbedPlateNo { get; set; }

        [NotMapped]

        private string ribbedPlateType;

        /// <summary>
        ///  筋板规格
        /// </summary>
        public string RibbedPlateType
        {
            get { return ribbedPlateType; }
            set { SetProperty(ref ribbedPlateType, value); }
        }

        [NotMapped]

        private decimal? ribbedPlateNumber;

        /// <summary>
        ///  筋板数量
        /// </summary>
        public decimal? RibbedPlateNumber
        {
            get { return ribbedPlateNumber; }
            set { SetProperty(ref ribbedPlateNumber, value); }
        }


        [NotMapped]

        private decimal? ribbedPlateWeight;

        /// <summary>
        ///  筋板重
        /// </summary>
        public decimal? RibbedPlateWeight
        {
            get { return ribbedPlateWeight; }
            set { SetProperty(ref ribbedPlateWeight, value); }
        }



        /// <summary>
        /// 绳头件号
        /// </summary>
        public string RopeHeadNo { get; set; }
        /// <summary>
        /// 绳头规格
        /// </summary>
        public string RopeHeadType { get; set; }
        /// <summary>
        /// 绳头数量
        /// </summary>
        public decimal? RopeHeadNumber { get; set; }

        [NotMapped]

        private decimal? ropeHeadWeight;

        /// <summary>
        ///  绳头重
        /// </summary>
        public decimal? RopeHeadWeight
        {
            get { return ropeHeadWeight; }
            set { SetProperty(ref ropeHeadWeight, value); }
        }


        /// <summary>
        /// 配重
        /// </summary>
        public decimal? Counterweight { get; set; }

        /// <summary>
        /// 材料
        /// </summary>
        public string RawMaterials { get; set; }

        /// <summary>
        /// 轿顶轮直径
        /// </summary>
        public decimal? CarRoofQheelDiameter { get; set; }


        [NotMapped]

        private string wireRopeHole;

        /// <summary>
        ///  钢丝绳孔
        /// </summary>
        public string WireRopeHole
        {
            get { return wireRopeHole; }
            set { SetProperty(ref wireRopeHole, value); }
        }

        /// <summary>
        /// 主机位置
        /// </summary>
        public string HostPosition { get; set; }
        /// <summary>
        /// 制作方向
        /// </summary>
        public string MakeDirection { get; set; }
        /// <summary>
        /// 方向
        /// </summary>
        public string Direction { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 作为子件时候的参数
        /// </summary>
        public string ChildPar { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public string Par { get; set; }


        /// <summary>
        /// 辅料
        /// </summary>
        public string Accessories { get; set; }

        /// <summary>
        /// 辅料大小
        /// </summary>
        public string AccessoriesSize { get; set; }

        /// <summary>
        /// 辅料数量
        /// </summary>
        public string AccessoriesNumner { get; set; }

        /// <summary>
        /// 辅料处理方式
        /// </summary>
        public string AccessoriesHandle { get; set; }

        /// <summary>
        /// 辅料备注
        /// </summary>
        public string AccessoriesRemark { get; set; }

  


        /// <summary>
        /// 三行对重补充参数
        /// </summary>
        public string ParJson { get; set; }

        /// <summary>
        /// 其他参数 西奥有 三行  电梯
        /// </summary>
        public string OtherParJson { get; set; }


        /// <summary>
        /// 优麦图片
        /// </summary>
        public string PictureJson { get; set; }

        /// <summary>
        /// 优迈子图
        /// </summary>
        public string ChildJson { get; set; }

        /// <summary>
        /// 公司
        /// </summary>
        public int Company { get; set; }







    }
}
